<?php /* Smarty version 2.6.16, created on 2009-04-25 12:25:05
         compiled from View.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'img', 'View.html', 11, false),array('function', 'url', 'View.html', 29, false),array('function', 'language', 'View.html', 29, false),array('function', 'bookmarks', 'View.html', 43, false),array('function', 'module', 'View.html', 73, false),array('modifier', 'process_code', 'View.html', 51, false),array('modifier', 'date_format', 'View.html', 58, false),array('modifier', 'filesize', 'View.html', 63, false),array('modifier', 'ucwords', 'View.html', 64, false),)), $this); ?>
<div style="text-align:center;">
    <table style="margin-left:auto;margin-right:auto;">
        <tr>
            <td>
                <div class="wrap1">
                    <div class="wrap2">
                        <div class="wrap3">
                            <div class="wrap4">
                                <div class="wrap5">
                                <?php if (! $this->_tpl_vars['bUseLightbox']): ?>
								<?php echo smarty_function_img(array('max_width' => ($this->_tpl_vars['iImgViewSize']),'src' => ($this->_tpl_vars['sActualImage']),'src_def' => "design/pic/noimage_120.jpg",'alt' => "",'id' => 'mainimage'), $this);?>

                                <?php else: ?>
                                <?php if ($this->_tpl_vars['iWidth'] > $this->_tpl_vars['iImgViewSize'] || $this->_tpl_vars['iHeight'] > $this->_tpl_vars['iImgViewSize']): ?>
                				<?php echo smarty_function_img(array('onmouseover' => "showInfo5('".($this->_tpl_vars['sEnlargeImage'])."', '', '');",'onmouseout' => "return nd();",'rel' => 'lytebox','onclick' => "startLytebox('mainimage');",'max_width' => ($this->_tpl_vars['iImgViewSize']),'src' => ($this->_tpl_vars['sActualImage']),'src_def' => "design/pic/noimage_120.jpg",'alt' => "",'id' => 'mainimage'), $this);?>

                				<?php else: ?>
                				<?php echo smarty_function_img(array('max_width' => ($this->_tpl_vars['iImgViewSize']),'src' => ($this->_tpl_vars['sActualImage']),'src_def' => "design/pic/noimage_120.jpg",'alt' => ""), $this);?>

                				<?php endif; ?>
                				<?php endif; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <span style="padding-left:10px;">
    <?php if (isStaff ( )): ?>
    	<a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.gallery.main','delete' => $this->_tpl_vars['aItem']['id']), $this);?>
" onclick="sure('');">[ <?php echo smarty_function_language(array('text' => 'delete'), $this);?>
 ]</a>
    	<?php if ($this->_tpl_vars['aItem']['feature'] == 1): ?><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','removefeature' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'unmake_featured'), $this);?>
 ]</a><?php else: ?><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'current','makefeature' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'make_featured_763'), $this);?>
 ]</a><?php endif; ?>	
    <?php endif; ?>
        <a class="link_action" href="<?php if ($this->_tpl_vars['bLoggedIn']):  echo $this->_tpl_vars['sUrl']; ?>
#comment<?php else:  echo smarty_function_url(array('link' => 'public.login'), $this); endif; ?>">[ <?php echo smarty_function_language(array('text' => 'leave_a_comment'), $this);?>
 ]</a><?php if ($this->_tpl_vars['bCanRate']): ?>&nbsp;<a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.gallery.rate','rateid' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'rate_this_pic'), $this);?>
 ]</a><?php endif; ?>
    </span>
    <br /><br />
    <div style="text-align:center;font-size:9pt;">
        <?php if ($this->_tpl_vars['iPrevId']): ?><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.gallery.view','id' => $this->_tpl_vars['iPrevId'],'field' => $this->_tpl_vars['sField']), $this);?>
"> &lt;&lt; <?php echo smarty_function_language(array('text' => 'prev_pic'), $this);?>
</a><?php endif; ?>
        <?php if ($this->_tpl_vars['iPrevId'] && $this->_tpl_vars['iNextId']): ?>|<?php endif; ?>
        <?php if ($this->_tpl_vars['iNextId']): ?><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.gallery.view','id' => $this->_tpl_vars['iNextId'],'field' => $this->_tpl_vars['sField']), $this);?>
"><?php echo smarty_function_language(array('text' => 'next_pic'), $this);?>
 &gt;&gt;  </a><?php endif; ?>
    </div>
</div>
<br />

<?php echo smarty_function_bookmarks(array(), $this);?>
<br />

<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                    <td class="block_header"><?php if (! $this->_tpl_vars['aItem']['text']):  echo smarty_function_language(array('text' => 'Mod_Site.untitled'), $this); else:  echo ((is_array($_tmp=$this->_tpl_vars['aItem']['text'])) ? $this->_run_mod_handler('process_code', true, $_tmp) : smarty_modifier_process_code($_tmp));  endif; ?></td>
                </tr>
            </table>
            <table style="width:100%;" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="vertical-align:middle;font-size:8pt;width:60%;" class="color">
                        <div style="padding-left:8px;">
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'date'), $this);?>
</b>: <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['sMonthDateFormat']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['sMonthDateFormat'])); ?>
</div>
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'views'), $this);?>
</b>: <?php echo $this->_tpl_vars['aItem']['view']; ?>
</div>
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'comments_67'), $this);?>
</b>: <?php echo $this->_tpl_vars['aItem']['comment']; ?>
</div>
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'rating'), $this);?>
</b>: <?php echo $this->_tpl_vars['aItem']['rating']; ?>
</div>
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'resolution'), $this);?>
</b>: <?php echo $this->_tpl_vars['iWidth']; ?>
 x <?php echo $this->_tpl_vars['iHeight']; ?>
</div>
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'image_size'), $this);?>
</b>: <?php echo ((is_array($_tmp=$this->_tpl_vars['iFileSize'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp)); ?>
</div>
                            <?php if ($this->_tpl_vars['aItem']['cname']): ?><div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'category_145'), $this);?>
</b>: <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['cname'])) ? $this->_run_mod_handler('ucwords', true, $_tmp) : ucwords($_tmp)); ?>
</div><?php endif; ?>
                            <div style="padding-top:4px;"><b><?php echo smarty_function_language(array('text' => 'image_url_location'), $this);?>
</b>:</div>                            
                        </div>
                    </td>
                    <td style="width:40%;text-align:center;vertical-align:middle;">
                        <div style="padding-bottom:5px;">
                            <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aItem']['user']), $this);?>
"><?php echo $this->_tpl_vars['aItem']['user']; ?>
</a>
                        </div>
                        <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aItem']['user']), $this);?>
">
                            <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['aItem']['user'],'iSize' => 75,'class' => 'pic1','onmouseover' => "showInfo5('".($this->_tpl_vars['aItem']['user'])."', '', '');this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

                        </a>
                    </td>
                </tr>
            </table>
            <div style="padding-top:4px;padding-left:10px;">
                <input type="text" size="70" name="url" value="<?php echo $this->_tpl_vars['sActualImage']; ?>
" />
            </div>
        </td>
    </tr>
</table>

		<br />
		<a name="comment"></a>
		<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
            <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header"><?php echo smarty_function_language(array('text' => 'members_comments'), $this);?>
</td>
            </tr>
        </table>

        <table style="width:100%;" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width:2%;"></td>
                <td style="width:98%;font-size:8pt;vertical-align:middle;font-size:8pt;" class="color">
                <br />
                <?php echo smarty_function_module(array('module' => 'Comments','component' => 'AddForm','type' => 'gallery','alert_id' => $this->_tpl_vars['aItem']['user_id']), $this);?>

                <br />
             	<a name="comment"></a>
             	<div id="new_comment" style="display:none;"></div>
                <?php echo smarty_function_module(array('module' => 'Comments','component' => 'List','type' => 'gallery','totalCount' => $this->_tpl_vars['aItem']['comment']), $this);?>

                </td>
            </tr>
        </table>